const textInfo = {
	state: {
		templates: "1",
		// 交互日志
		log: {
			info: "demo",
			actionData: []
		},
	},
	getters: {
		templates(state) {
			return state.templates;
		},
		log(state) {
			return state.log
		}
	},
	mutations: {
		templatesMu(state, val) {
			if (val) {
				state.templates = val; // 改变vuex中的templates为设置的皮肤
			}
		},
		logMu(state, val) {
			if (val) {
				state.log.actionData.push(val);
			}
		}
	},
	actions: {
		info_seclect({
			commit
		}, param) {
			commit('info_seclect', param)
		},
		area_seclect({
			commit
		}, param) {
			commit('area_seclect', param)
		}
	}
}

export default textInfo
